package com.dindang.propertyfee.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.dindang.propertyfee.mvp.contract.FeeAdvancedSearchContract;
import com.dindang.propertyfee.mvp.model.FeeAdvancedSearchModel;


@Module
public class FeeAdvancedSearchModule {
    private FeeAdvancedSearchContract.View view;

    /**
     * 构建FeeAdvancedSearchModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public FeeAdvancedSearchModule(FeeAdvancedSearchContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    FeeAdvancedSearchContract.View provideFeeAdvancedSearchView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    FeeAdvancedSearchContract.Model provideFeeAdvancedSearchModel(FeeAdvancedSearchModel model) {
        return model;
    }
}